// Teaching.cpp : implementation file
//

#include "stdafx.h"
#include "arena.h"
#include "Teaching.h"
#include <commctrl.h>
#pragma comment(lib,"comctl32.lib") 

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Teaching dialog


Teaching::Teaching(CWnd* pParent /*=NULL*/)
	: CDialog(Teaching::IDD, pParent)
{
	//{{AFX_DATA_INIT(Teaching)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

BOOL Teaching::OnInitDialog()
{
	CDialog::OnInitDialog();
	INITCOMMONCONTROLSEX iccInitCtrls;
	iccInitCtrls.dwSize = sizeof(INITCOMMONCONTROLSEX);
	iccInitCtrls.dwICC = ICC_LISTVIEW_CLASSES | 0x00008000 ;
	InitCommonControlsEx(&iccInitCtrls);
	return TRUE;
}

void Teaching::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Teaching)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Teaching, CDialog)
	//{{AFX_MSG_MAP(Teaching)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
	ON_NOTIFY(NM_CLICK, IDC_SYSLINK1, &Teaching::OnNMClickSyslink1)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Teaching message handlers

void Teaching::OnNMClickSyslink1(NMHDR *pNMHDR, LRESULT *pResult)
{
		 ShellExecute(this->m_hWnd,"open",   
          "http://ai.thisca.cn","","",   SW_SHOW);  
	*pResult = 0;
}
